function create(obj) {
  function F() {}
  F.prototype = obj
  return new F()
}
const obj = {a:1}
create(obj)
console.log("🚀 ~ obj:", obj)
